from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()
from EMC.views import recv_config
from recv.views import *
from freight.views import *
from reports.views import *
from django.conf import settings
from submitpool.views import *
from account.views import *
from WFInv.views import *
from HP_ONHOLD.views import *

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'EMC.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    #url(r'^admin/', include(admin.site.urls)),
    (r'^home$', home_main),
    (r'^recv_config/$', recv_config),
    (r'^shipment_config_admin/$', shipment_config_admin),
    (r'^shipment_config_admin/get$', shipment_config_admin_get),
    (r'^shipment_config_admin/post$', shipment_config_admin_post),
    (r'^freight_maininfo/$', freight_maininfo),
    (r'^freight_maininfo/get[?]*[\S]*$', freight_maininfo_get),
    (r'^freight_maininfo/post$', freight_maininfo_post),
    (r'^freight_maininfo/report$', freight_maininfo_report),
	(r'^submitpool/item_view$', submitpool_item_view),
	(r'^submitpool/$', submitpool),
    (r'^submitpool/upload_frame$', submitpool_upload_view),
    (r'^submitpool/upload_file$', submitpool_upload),
    (r'^report$', shipment_config_admin),
    (r'^account/login$', login_view),
    (r'^account/next[?]*[\S]*$', login_next),
    (r'^account/auth$', login_auth),
    (r'^account/password$', changePassword_view),
    (r'^account/changepassword$', changepassword),
    (r'^WFInv/Main$', WFMain),
    (r'^WFInv/Calc$', WFCalc),
    (r'^HPOnhold/Main$', hponhold_main),
    (r'^HPOnhold/Main/Upload/post$', hponhold_main_upload_post),
    (r'^HPOnhold/get$', hponhold_get),
    (r'^HPOnhold/get_wait_reason$', hponhold_get_wait_reason),
    (r'^HPOnhold/post$', hponhold_post),
    #(r'^HPOnhold/detail/(\d+)/$', hponhold_detail),
    (r'^static/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_URL}),
)
